﻿using System;
using MyFloridaHouse.libSvOpenDistricts.ViewModel;

namespace MyFloridaHouse.libSvOpenDistricts.MapShapes
{
    public delegate void RegionFillCriteriaChangedEventHandler(object sender, EventArgs e);
    public delegate void RegionFillConditionsChangedEventHandler(object sender, EventArgs e);

    public partial class RegionFill
    {
        public static event RegionFillCriteriaChangedEventHandler RegionFillCriteriaChanged;
        public static event RegionFillConditionsChangedEventHandler RegionFillConditionsChanged;

        public static void RaiseRegionFillCriteriaChanged(object sender)
        {
            if (RegionFillCriteriaChanged != null)
            {
                RegionFillCriteriaChanged(sender, new EventArgs());
            }
        }

        public static void RaiseRegionFillConditionsChanged(object sender)
        {
            if (RegionFillConditionsChanged != null)
            {
                RegionFillConditionsChanged(sender, new EventArgs());
            }
        }

    }
}
